package com.coldchain.message.core.entity.order;

import com.coldchain.message.core.constant.OrderMessageType;

import java.math.BigDecimal;

/**
 * @ClassName NewsMsg
 * @Description 新订单消息
 * @Author fangliai
 * @Date 2018/9/20 17:07
 * @Vesion 1
**/
public class NewsMsg extends  BaserOrderMsg {

    public NewsMsg(String orderId,
                   String longitude,
                   String latitude,
                   Integer orderType,
                   BigDecimal totlaPrice,
                   String shipAddress,
                   Integer carOcMax,
                   Integer carOcMin,
                   Integer companyId,
                   Double orderKm) {
        super(orderId, longitude, latitude, OrderMessageType.NEW_ORDER);
        this.orderType = orderType;
        this.totlaPrice = totlaPrice;
        this.shipAddress = shipAddress;
        this.carOcMax = carOcMax;
        this.carOcMin = carOcMin;
        this.companyId = companyId;
        this.orderKm = orderKm;

    }

    public NewsMsg() {
         super();
     }


    /**
     * 订单类型
     */
    private int orderType;
    /**
     * 订单价格
     */
    private BigDecimal totlaPrice;
    private String shipAddress;
    private Integer carOcMax;
    private Integer carOcMin;
    private Integer companyId;
    private Integer status=1;
    /**
     * 订单总里程
     */
    private Double orderKm;


    public int getOrderType() {
        return orderType;
    }

    public void setOrderType(int orderType) {
        this.orderType = orderType;
    }

    public BigDecimal getTotlaPrice() {
        return totlaPrice;
    }

    public void setTotlaPrice(BigDecimal totlaPrice) {
        this.totlaPrice = totlaPrice;
    }

    public String getShipAddress() {
        return shipAddress;
    }

    public void setShipAddress(String shipAddress) {
        this.shipAddress = shipAddress;
    }

    public Integer getCarOcMax() {
        return carOcMax;
    }

    public void setCarOcMax(Integer carOcMax) {
        this.carOcMax = carOcMax;
    }

    public Integer getCarOcMin() {
        return carOcMin;
    }

    public void setCarOcMin(Integer carOcMin) {
        this.carOcMin = carOcMin;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public Double getOrderKm() {
        return orderKm;
    }

    public void setOrderKm(Double orderKm) {
        this.orderKm = orderKm;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
